:root {
  --primary: rgb(50, 120, 205);
  --white: rgb(236, 237, 241);
  --black: rgb(18, 19, 21);
  --footerWhite: rgb(243, 244, 246);
  --chatBox: rgb(201, 231, 255);
  --phoneIcon: rgb(46, 141, 254);

  --msgMargin: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  height: 100vh;
  width: 100vw;
  background-color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: "Roboto";
}

.cover {
  position: absolute;
  height: 100%;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.watermark {
  position: absolute;
  opacity: 0.1;
  font-size: 12px;
  /* 调整透明度 */
  pointer-events: none;
  /* 防止水印干扰用户交互 */
  white-space: nowrap;
  /* 可选：旋转水印文本 */
}

.watermark {
  transform-origin: left center;
  transform: rotate(-18deg) translateX(118px);
}

.watermark:nth-child(2n-1) {
  transform: rotate(-18deg);
}

.header {
  background-color: var(--primary);
  height: 48px;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  color: white;
}

.content {
  flex: 1;
  overflow: auto;
  padding: 0 0.5rem;
  z-index: 999;
}

.header>div,
.footer>div {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.footer {
  flex-shrink: 0;
  background-color: var(--footerWhite);
  height: 54px;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  color: var(--black);
}

.msg-input {
  outline: none;
  border: none;
  background-color: white;
  height: 2.2rem;
  border-radius: 4px;
  flex: 1;
}



.content-msg {
  display: flex;
  white-space: wrap;
  margin: var(--msgMargin) 0;
}

.msg-area {
  flex: 1;
  padding: 0 0.8rem;
  overflow-wrap: break-word
}

.msg-area>.msg {
  display: inline-block;
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem;
  background-color: #fff;
  color: rgb(33, 41, 48);
  letter-spacing: 1px;
  position: relative;
  font-size: 15px;
}

.check-icon {
  position: absolute;
  bottom: 0.2rem;
  left: -1.2rem;
}

.msg-area>.msg::before {
  content: '';
  position: absolute;
  left: -0.4rem;
  top: 1rem;
  height: 0.6rem;
  width: 0.4rem;
  background-color: white;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.is-self>.msg::before {
  left: unset;
  right: -0.4rem;
  background-color: var(--chatBox);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.is-self {
  text-align: right;
}

.is-self>.msg {
  background-color: var(--chatBox);
  text-align: left;
}

.user-right,
.user-left {
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  border-radius: 4px;
  background-color: rebeccapurple;
}

.headicon {
  height: 100%;
  width: 100%;
}

.conversation-time {
  margin: var(--msgMargin) 0;
  text-align: center;
}

.conversation-time .time {
  color: rgb(156, 157, 161);
  font-size: 14px;
}

.h-dot {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.h-tel {
  margin-left: auto !important;
}

.h-dot>div {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  margin: 2px 0;
  background-color: #fff;
}

.footer>div:last-child {
  margin-left: 0;
}

.h-dot {
  margin: 0 1.4rem !important;
}

.h-tel {
  margin-right: 0.8rem !important;
}

.h-name {
  margin: 0 0.4rem !important;
  letter-spacing: 1px;
}

.is-call {
  display: flex;
  align-items: center;
}